aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDeclareNativeFunctionTests]/[method:canDeclareNativeFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
blob: ed9c41134594458a3837c141d4f2df8d539e8a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Compilation unit elements:

(
    function-decl
    "shed__runtime__namespace__Example__Project__f"
    params=((param "p1" int) (param "p2" int) (param "n1" int) (param "n2" int))
    return-types=(int)
)
(
    function-decl
    "shed__runtime__gc_alloc"
    params=((param "size" int) (param "runtime_type_tag" int32))
    return-types=(data-ptr)
)

Locals:
 * (val "closure__f__0" int)
 * (val "closurePointer__f__0" data-ptr)

Instructions:

(
    (call ((local "closurePointer__f__0")) "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int32 int32)) (struct (function-ptr (struct ()) (struct ()))))))) (int32-const 3)))
    (
        memory-store
        pointer=(local "closurePointer__f__0")
        layout=(struct ((struct (data-ptr int32 int32)) (struct (function-ptr (struct ()) (struct ())))))
        element-offsets=(1 0)
        value=(function-ptr-const "shed__runtime__namespace__Example__Project__f")
    )
    (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0"))
)

Temporary stack:
 * PatioLocalRef[name=closure__f__0]